<%@ Page Language="C#" EnableViewState="false" ValidateRequest="false" AutoEventWireup="true" 
		MasterPageFile="~/App_ThemeMasters/NoStyle/OneColumnLayout.Master" Inherits="Syrinx.Gui.AspNet.Ajax.NitobiBasePage" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="ScsAspNet" Namespace="Syrinx.Gui.AspNet.Ajax" TagPrefix="saj" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>

<!--#include file="~/SiteControls/RegisterStandardControls.txt"-->
<!--#include file="../SiteControls/StandardHeaderPageContent.inc"-->
<!--#include file="../SiteControls/StandardFooterPageContent.inc"-->

<asp:Content ID="c1" ContentPlaceHolderID="title" runat="server">
	<%SecurityPrivilege = "AppFunctions.ManageProfile"; %>

	<swf:BizProc runat="server" ID="p" factoryName="userProfile" >
	</swf:BizProc>
	<swf:BizProc runat="server" ID="c" factoryName="profileContactBizProc" >
		<ParentBizProc id="p" fieldName="id" dataId="id" />
	</swf:BizProc>
	<div class="left"><h2><asp:Label ID="ImgCacheLibLbl" >User Profile</asp:Label></h2></div>
	<div class="HelpBtnArea" style="float:right">
		<asp:HyperLink runat="server" ID="_pageHelp" NavigateUrl="../std/Help.aspx?helpid=UserProfileHelp" Target="help">Help</asp:HyperLink>
	</div>
	<div class="clearer"></div>
</asp:Content>

<asp:Content ID="c3" ContentPlaceHolderID="mainContent" runat="server">
       <saj:ActionButton runat="server" ID="updateBtn" Actions="p.UpdateBizObj,c.UpdateBizObj" Text="Update" />

		<saj:NitobiBizObjDisplay ID="us1" runat="server" 
		EditableTemplate="UserManagement.Gui.AspNet.BasicUserDisplay" 
			ParentBizProcIds="p" />

		<saj:NitobiBizObjDisplay ID="contactInfo" runat="server" 
			ReadOnlyTemplate="Contacts.Gui.AspNet.ContactDetailRWDisplay"  
			Width="100%" ParentBizProcIds="c"/>		
			
		<saj:NitobiBizObjDisplay ID="us2" runat="server"
		TemplateNameBizRule="getUserSettingsDisplayTemplate" ParentBizProcIds="p" />
</asp:Content>
